// Copyright 2017, Paul DeMarco.
// All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.


import 'package:flutter/material.dart';
import 'package:flutter_phoenix/flutter_phoenix.dart';
import 'package:realmega_ota/util/log_util.dart';
import 'AppStateObserver.dart';
import 'main_realmega.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  var appStateObserver = AppStateObserver();
  WidgetsBinding.instance.addObserver(appStateObserver);
  runApp(Phoenix(
    child: RealmegaApp(),
  ),);
  // runApp(RealmegaApp());
  // runApp(
  //   DevicePreview(
  //     enabled: true,
  //     tools: const [
  //       ...DevicePreview.defaultTools
  //     ],
  //     builder: (context) => FlutterBlueApp(),
  //   ),
  // );
}